import { sequelize } from "../db/index.js"
import { DataTypes } from 'sequelize'

// 定义模型Blog
export const Blog = sequelize.define('blog', {
  title: {
    type: DataTypes.STRING,
    allowNull: false
  },
  author: DataTypes.STRING
})